<!-- header -->
<?php echo $this->element('landing/header'); ?>
<!-- / header -->
<section id="content">
<?php
$msg_type = $this->Session->read('msg_type');
$flash_msg = $this->Session->read('Message');
$form_background = "bg-dark";
$form_background_msg = "Now You Can Reset Your Password!";
if(isset($flash_msg['flash'])){
    $form_background = "bg-danger";
    $form_background_msg = $flash_msg['flash']['message'];
    $controller->Session->delete('Message');
}
?>
<div class="<?php echo $form_background;?> lt">
    <div class="container">
        <div class="m-b-lg m-t-lg">
            <h3 class="m-b-none" style="display: inline"><?php echo $form_background_msg;?></h3>
            <!--<small class="text-muted">Killer features you need know</small>-->
        </div>
    </div>
</div>
<!--<div class="bg-white b-b b-light">
    <div class="container">
        <ul class="breadcrumb no-border bg-empty m-b-none m-l-n-sm">
            <li><a href="landing.html">Home</a></li>
            <li class="active">Features</li>
        </ul>
    </div>
</div>-->
<div>
    <div class="container m-t-xl">
        <div class="row">
            <?php
            if($status['status']){
                $d = $status['data']['ForgotPassToken'];
            ?>
                <div class="col-sm-5 text-center">
                    <div class="panel panel-default wizard">
                        <div class="wizard-steps clearfix" id="form-wizard">
                            <ul class="steps">
                                <li data-target="#step1" class="complete"><span class="badge">1</span>Step 1:</li>
                                <li data-target="#step2" class="active"><span class="badge badge-info">2</span>Step 2:</li>
                            </ul>
                        </div>
                        <div class="step-content clearfix">
                            <div class="step-pane" id="step1">

                            </div>
                            <div class="step-pane active" id="step2">
                                <?php echo $this->Form->create('StudentUser', array('id' => 'form-forgot-password', 'class' => 'bs-example form-horizontal', 'inputDefaults' => array('label' => false,'div' => false)));?>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label">New Password</label>
                                    <div class="col-lg-8">
                                        <?php echo $this->Form->input('password', array('type'=>'password','id'=>'password', 'class' => 'form-control rounded', 'required'=>'','placeholder'=>'Password','div' => false, 'label' => false,)); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-10">
                                        <?php echo $this->Form->input('id', array('type'=>'hidden','id'=>'id','default'=>$d['student_user_id'],'div' => false, 'label' => false)); ?>
                                        <?php echo $this->Form->input('token_id', array('type'=>'hidden','id'=>'token_id','default'=>$d['id'],'div' => false, 'label' => false)); ?>
                                        <button type="submit" class="btn btn-sm btn-info">Reset My Password</button>
                                    </div>
                                </div>
                                <?php echo $this->Form->end();?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-7">
                    <h2 class="font-thin m-b-lg">Verification <span class="text-primary">Success</span>, You Can Now <span class="text-primary">Reset Your Password.</span></h2>
                    <p class="h4 m-b-lg l-h-1x">Step 2: Enter your new password and save it.
                    </p>
                </div>
            <?php
            }
            else{
            ?>
                <div class="col-sm-12">
                    <h2 class="font-thin m-b-lg">Sorry, A New Password <span class="text-primary">Token</span> Is <span class="text-primary">Needed</span> In Other To <span class="text-primary">Reset Your Password.</span></h2>
                    <p class="h4 m-b-lg l-h-1x">
                        <a class="btn btn-sm btn-info" href="<?php echo $this->Html->url(array('controller' => 'Student', 'action' => 'forgot_password')); ?>"> Click Here To Reset Password</a>
                    </p>
                </div>
            <?php
            }
            ?>
        </div>
    </div>
</div>
<div class="b-t b-light pos-rlt bg-white">
    <div class="container">
        <p class="m-t-xl m-b-xl"> </p>
    </div>
</div>
</section>